package com.bonc.apicreator.entity;


import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;

import lombok.Getter;
import lombok.Setter;


/**
 * RowKey设计
 *
 * @author gaopengyu
 * @version 2016年8月18日
 * @see RowKey
 * @since
 */
@Setter
@Getter
@Entity
public class RowKey {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /**
     * 用户输入的设计代码
     */
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private String context;

    /**
     * start
     */
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private String startContext;

    /**
     * end
     */
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private String endContext;

    /**
     * 关联apiId
     */
    private Long apiId;
}
